package com.ruoyi.tb.lmt.domain.obj;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zoubeibei
 * @date 2023年11月15日 13:47
 */
public class DamperObj {

    public static String CARTYPE = "carType";
    public static String CHECKER = "checker";
    public static String DAMPERDATA = "damperData";
    public static String INTERFACE = "interface";
    public static String MONOVSET = "monoVset";
    public static String MULTIVSET = "multiVset";
    public static String OPERATOR = "operator";
    public static String PASS = "pass";

    public static String[] tableName = new String[]{
            CARTYPE,
            CHECKER,
            DAMPERDATA,
            INTERFACE,
            MONOVSET,
            MULTIVSET,
            OPERATOR,
            PASS
    };

    public static String[] carType = new String[]{
            "ID",
            "InstallcarType"
    };

    public static String[] checker = new String[]{
            "ID",
            "checkerName"
    };

    public static String[] damperData = new String[]{
            "ID",
            "DamperNo",
            "DamperType",
            "CarNo",
            "CarType",
            "ProduceDate",
            "LastTestDate",
            "UsedMonth",
            "UsedLength",
            "F/V",
            "Amplititude",
            "Friquency",
            "VelocityInterval",
            "TotalResult",
            "TestDate",
            "Operator",
            "Checker",
            "TestSetNum",
            "VelocitySet0",
            "Ftset0",
            "Fpset0",
            "ErrpSet0",
            "ErrNst0",
            "DissymmetrySet0",
            "VelocitySet1",
            "Ftset1",
            "Fpset1",
            "ErrpSet1",
            "ErrNst1",
            "DissymmetrySet1",
            "VelocitySet2",
            "Ftset2",
            "Fpset2",
            "ErrpSet2",
            "ErrNst2",
            "DissymmetrySet2",
            "VelocitySet3",
            "Ftset3",
            "Fpset3",
            "ErrpSet3",
            "ErrNset3",
            "DissymmetrySet3",
            "VelocitySet4",
            "Ftset4",
            "Fpset4",
            "ErrpSet4",
            "ErrNst4",
            "DissymmetrySet4",
            "dt0",
            "dt1",
            "dt2",
            "dt3",
            "dt4",
            "damperData0_0",
            "damperData0_1",
            "damperData1_0",
            "damperData1_1",
            "damperData2_0",
            "damperData2_1",
            "damperData3_0",
            "damperData3_1",
            "damperData4_0",
            "damperData4_1",
            "TestAmplitude0",
            "VelocityTension0",
            "Ftesion0",
            "ErrFtension0",
            "ResultTension0",
            "VelocityPress0",
            "Fpress0",
            "ErrEpress0",
            "ResultPress0",
            "Dissymmetry0",
            "ResultDissmmetry0",
            "f/v0",
            "TestResult0",
            "TestAmplitude1",
            "VelocityTension1",
            "Ftesion1",
            "ErrFtension1",
            "ResultTension1",
            "VelocityPress1",
            "Fpress1",
            "ErrEpress1",
            "ResultPress1",
            "Dissymmetry1",
            "ResultDissmmetry1",
            "f/v1",
            "TestResult1",
            "TestAmplitude2",
            "VelocityTension2",
            "Ftesion2",
            "ErrFtension2",
            "ResultTension2",
            "VelocityPress2",
            "Fpress2",
            "ErrEpress2",
            "ResultPress2",
            "Dissymmetry2",
            "ResultDissmmetry2",
            "f/v2",
            "TestResult2",
            "TestAmplitude3",
            "VelocityTension3",
            "Ftesion3",
            "ErrFtension3",
            "ResultTension3",
            "VelocityPress3",
            "Fpress3",
            "ErrEpress3",
            "ResultPress3",
            "Dissymmetry3",
            "ResultDissmmetry3",
            "f/v3",
            "TestResult3",
            "TestAmplitude4",
            "VelocityTension4",
            "Ftesion4",
            "ErrFtension4",
            "ResultTension4",
            "VelocityPress4",
            "Fpress4",
            "ErrEpress4",
            "ResultPress4",
            "Dissymmetry4",
            "ResultDissmmetry4",
            "f/v4",
            "TestResult4",
            "Remark"
    };

    public static String[] interface00 = new String[]{
            "ID",
            "dispCorrect",
            "dispZero",
            "forceCorrect1",
            "forceZero1",
            "forceCorrect2",
            "forceZero2",
            "antitude",
            "monoDamperType",
            "multiDamperType",
            "Xscale",
            "Yscale",
            "timeFactor",
            "commPort",
            "velocityInterval",
            "operator",
            "checker",
            "QueryDamperType",
            "QueryCarNo",
            "QueryCarType",
            "QueryDateYear",
            "QueryDateMonth",
            "QueryDateDay",
            "autoForceZero",
            "F-SlineMark",
            "F-VlineMark",
            "MultiF-VlineMark",
            "QueryDamperTypeEnable",
            "QueryCarNoEnable",
            "QueryCarTypeEnable",
            "QueryDateEnable",
            "BlackPrint",
            "ColorPrint",
            "DataNum"
    };

    public static String[] monoVset = new String[]{
            "ID",
            "DamperType",
            "VelocitySet",
            "ForceTensionSet",
            "ForcePressSet",
            "ErrPset",
            "ErrNset",
            "DissymmetrySet"
    };

    public static String[] multiVset = new String[]{
            "ID",
            "DamperType",
            "VelocitySet0",
            "ForceTSet0",
            "ForcePSet0",
            "ErrPSet0",
            "ErrNSet0",
            "DissymmetrySet0",

            "VelocitySet1",
            "ForceTSet1",
            "ForcePSet1",
            "ErrPSet1",
            "ErrNSet1",
            "DissymmetrySet1",

            "VelocitySet2",
            "ForceTSet2",
            "ForcePSet2",
            "ErrPSet2",
            "ErrNSet2",
            "DissymmetrySet2",

            "VelocitySet3",
            "ForceTSet3",
            "ForcePSet3",
            "ErrPSet3",
            "ErrNSet3",
            "DissymmetrySet3",

            "VelocitySet4",
            "ForceTSet4",
            "ForcePSet4",
            "ErrPSet4",
            "ErrNSet4",
            "DissymmetrySet4",
    };

    public static String[] operator = new String[]{
            "ID",
            "OperatorName",
    };

    public static String[] pass = new String[]{
            "ID",
            "PassWord",
    };

    public static Map getMap(){
        Map<String, String[]> allTable = new HashMap<String, String[]>();
        allTable.put(tableName[0], carType);
        allTable.put(tableName[1], checker);
        allTable.put(tableName[2], damperData);
        allTable.put(tableName[3], interface00);
        allTable.put(tableName[4], monoVset);
        allTable.put(tableName[5], multiVset);
        allTable.put(tableName[6], operator);
        allTable.put(tableName[7], pass);
        return allTable;
    }
}
